package com.aaa.service.front.Impl;

import com.aaa.entity.Category;
import com.aaa.entity.Goods;
import com.aaa.mapper.front.IndexMapper;
import com.aaa.service.front.IIdexService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class IndexServiceImpl implements IIdexService{
    @Resource
    private IndexMapper indexMapper;

    @Override
    public List<Goods> list() {
        return indexMapper.findAll();
    }

    @Override
    public List<Category> findAllById(Integer categoryId) {
        return indexMapper.findAllById(categoryId);
    }

    @Override
    public List<Goods> findByGoodsId(String goodsId) {
        return indexMapper.findByGoodsId(goodsId);
    }

    @Override
    public Map<String, Object> queryByGoods(String goodsId) {
        return indexMapper.queryByGoods(goodsId);
    }

    @Override
    public Map<String, Object> queryByGoodsF(String goodsId) {
        return indexMapper.queryByGoodsF(goodsId);
    }

    @Override
    public Map<String, Object> queryByGoodsJ(String goodsId) {
        return indexMapper.queryByGoodsJ(goodsId);
    }
}
